import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;


public class ProcessThread extends Thread {

	private Object receivedObj;
	private DataOutputStream outStream;
	private DataInputStream inStream;
	
	
	public ProcessThread( Socket socket ) {
		
		System.out.println("ó�������� ��");
		
		try {
			outStream = new DataOutputStream( socket.getOutputStream() );
			inStream =  new DataInputStream( socket.getInputStream() );
			
		} catch (IOException e) {
			e.printStackTrace();
		}	
		
	}
	
	@Override
	public void run() {
		try {			
		
			System.out.println(inStream.readUTF());
			outStream.writeUTF("결과 잘 받음");
			
		} catch (IOException e) {
			e.printStackTrace();
		}	
	}
	
	
	
	public Object getReceivedObj() {
		return receivedObj;
	}
	
	
	
}

